package org.project.texteditor;


import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.log4j.PropertyConfigurator;
import org.boxlayout.gui.BoxLayoutEngine;
import org.boxlayout.widget.RootDisplay;

public class TextEditor {

	BoxLayoutEngine ble;
	public TextEditor() {


		final Log log = LogFactory.getLog("main");
		PropertyConfigurator.configure("log4j.properties");
		
		/*
		BoxLayoutFrame blf  = new BoxLayoutFrame();
		ble = blf.getBoxLayoutEngine();
		ble.setOrtho(true);
		ble.getCamera2d().setViewBoundaries(-3f,3f,-3f,3f);
		ble.addKeyListener(new KeyboardListener() {

			@Override
			public void onEvent(KeyboardEvent keyEvent) {
				//System.out.println(keyEvent.getKeyEvent().getKeyCode());
				if(keyEvent.getKeyEvent().getKeyCode()==0&&keyEvent.getType()==KeyboardEvent.Type.PRESSED){
					System.out.println(ble.getRootElement().serializeToText("  "));
				}

			}
		});
		ble.updateKeyListeners();
		*/

		RootDisplay.getInstance().init();
		
		
	}





	public static void main(String[] args) {
		new TextEditor();

	}

}
